<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>
<%@ taglib prefix="myfn" uri="/WEB-INF/jstlfun.tld" %>
<%@ taglib uri="/WEB-INF/c.tld"  prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="x-ua-compatible" content="ie=7" />
	<TITLE>照片显示:i友邻社区</TITLE>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/main.css" />
	<link rel="stylesheet" type="text/css" href="${cpath}/css/leftmenu.css" />
	<link rel="stylesheet" type="text/css" href="${cpath}/css/layout.css">
	<link rel="stylesheet" type="text/css" href="${cpath}/css/group.css" />
	
	<SCRIPT type=text/javascript src="${cpath}/js/picloop.js"></SCRIPT>

</head>
<body>
<script> 
	//转页面
	var curUserID = '${userID}';
	if((curUserID == "")||(curUserID == null)){
//		parent.window.location.replace("${cpath}/index.jsp"); 
	}
	function change_width(img_name,wid,hei)
	{
		var CurImage=new Image();
		if(CurImage.src!=img_name.src)
		{
			CurImage.src=img_name.src;
		}
		var img_width = CurImage.width;
		var img_height = CurImage.height;
		img_name.width = img_width;
		img_name.height = img_height;

		if(img_height/hei > img_width/wid)
		{
			if( img_height > hei)
			{
				img_name.width = img_name.width/img_name.height*hei;
				img_name.height = hei;
			}
		}
		else
		{
			if( img_width > wid)
			{
				img_name.height = img_name.height/img_name.width*wid;
				img_name.width = wid;
			}
		}
		return true;
	}
</script>

 	<!-- 页首 {{{ -->
	<%@ include file="/menu.jsp"%>
   
	<div id="mainBody">
	<!-- 左边菜单栏 {{{ -->
	<%@ include file="/leftmenu.jsp"%>

		<DIV id=group>

		<!-- 右侧宽栏 {{{ -->
		<DIV class=group_mid>

			<div class='subtop' >
					<p><a href="${cpath}/qunzu_${albumForm.groupID}"><img src="${cpath}/${myfn:getGroupPic(albumForm.groupID)}" ></a></p>
				<dl >
					<dt class="tit"><a href="${cpath}/qunzu_${albumForm.groupID}">${myfn:getGroupName(albumForm.groupID)}</a>&nbsp;&gt;&nbsp;<a >照片</a></dt>
					<dd class="intro"><span>专辑：${albumForm.albumname}</span></dd>
				</dl>
				<div class='fun'>
					<li><a href="">返回上一页</a></li>
				</div>
			</div>
			<div id="section-header">
					<ul class="related-links" style="float:left">
						<li><a>第1张/共${albumForm.num}张</a></li><li><a href="${cpath}/qunzu_${albumForm.groupID}/xiangce_${theForm.GAlbumID}">返回该专辑</a></li>
					</ul>
					<ul class="related-links">
						<li><a href="">上一张</a></li><li><a href="${cpath}/group/albumoper.jsp">下一张</a></li><li class="last"></li> 
					</ul>
			</div>
			<DIV class='whole'><!-- 右侧宽栏 }}}-->
	
				<div class='bigpic' >
				
						<H2><IMG id=albums src="${cpath}/${theForm.folder}${theForm.name}"  onload="change_width(this,700,700)"></H2>
							<DIV class=picNext>
								<A id=preLink href="http://www.sysegis.com"><IMG border=0 src="${cpath}/icon/icon0312_26.gif" width=24 height=24></A>
								<H4>2/15</H4>
								<A id=nextLink href="http://www.1ploan.com"><IMG border=0 src="${cpath}/icon/icon0312_28.gif" width=24 height=24></A>
							</DIV>				 

						<dl >
							<dt class="tit"><span></span></dt>
							<dd class="info">专辑：<span>${albumForm.albumname}</span></dd>
							<dd class="info">上传：<span>${myfn:getUserNick(theForm.userID)}</span></dd>
							<dd class="info">时间：<span>${myfn:formatDate14(theForm.MTime, "-")}</span></dd>
						</dl>

					<div class='fun'>
						<li><a href="">不良信息举报</a></li>
					</div>
				</div>
			</div>			

		</DIV><!-- profile_mid }}} -->
		</DIV><!-- group end }}} -->
	<DIV class="clear"></DIV>

	<!--页尾 -->
	<%@ include file="/indexfoot.jsp"%>
	</DIV><!--cont end-->
</body>
</html>
<!---->
<SCRIPT>
var fid = 618;
var tid = 5225918;
var sid = "dkjsS2";
var page = 1;
var extra = "";
var formhash = "e8441d69";
var referer = "";
var discuz_uid = 0;
var thread_special = 0;
var firststanddisabled = "";
var firststandselect_0 = "";
var firststandselect_1 = "";
var firststandselect_2 = "";
var forum_allowsmilies = 1;
var templatesimg = "http://bbsfile.ifeng.com/bbsfile/images";
var forum_ismoderator = 0;
var allowdelpost = 0;
var allowstickthread = 0;
var thread_price = 0;
var allowrefund = 0;
var forum_modrecommend_sort = "";
var supe_status = 0;
var allowpushthread = "";
var forum_supe_pushsetting_status = "";
var thread_supe_pushstatus = 2;
</SCRIPT>


<SCRIPT type=text/javascript>
j(document).ready(function(){	

    j('#albums').click(function(event){
        imageOnclick(event, '#albums', '#preLink', '#nextLink');	
        }).mousemove(function(event){
        imageOnmousemove(event, '#albums', 1);	
    });
});
</SCRIPT>
<script>

    /**
     * 检查项目资料维护
     */
	function doConfirm()
	{
		var form = document.theForm;

		var action = form['action'];

    form.submit();
	}

	/**
   * 根据具体请求设置各个组件状态	
   */
  function showState()
	{
		var action = '${theForm.action}';
		var form = document.theForm;		
		if(action == 'detail')
		{
           
			document.getElementById("back").style.display = "none";

		}
		else if(action == 'modifyPage' || action == 'update')
		{

			form['action'].value = 'update';
		}

	}
	showState();


</script>

